stages:
  - build
  - upload
  - deploy

build job:
  script:
    - docker build -t artems_image:${CI_COMMIT_SHORT_SHA} .
  stage: build

upload job:
  script:
    - kind load docker-image artems_image:${CI_COMMIT_SHORT_SHA}
  stage: upload

deploy job:
  environment:
    name: production
  script:
    - kubectl get pods
   # - kubectl create configmap myapp-conf --namespace=default -o yaml --dry-run=client | kubectl apply -f -
   # - kubectl set image deployment/router-app-deployment router-app-container=router-app:${CI_COMMIT_SHORT_SHA}
  stage: deploy
